<template>
    <div class="header">
        <div class="search" @click="$router.push('/search')">
            <i class="iconfont icon-sousuo"></i>
            {{msg}}
        </div>
    </div>
</template>
<script>
export default {
    props:["msg"],
};
</script>
<style lang="scss" scoped>
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 0.2rem;
    background-color: #fff;
    z-index: 22;
    .search {
        line-height: 0.6rem;
        font-size: 0.3rem;
        color: #666;
        border-radius: 0.5rem;
        padding: 0.1rem;
        text-align: center;
        background-color: #f5f5f5;
    }
}
</style>